package com.credithc.signature.manager.client;
import com.credithc.baseserv.core.message.Message;
import com.credithc.signature.common.ro.manager.ApprovalRo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient(name = "saas-server", serviceId = "saas-server" )
//@FeignClient(name = "saas-server", serviceId = "saas-server" ,url= "10.150.30.54")
//@FeignClient(name = "saas-server", serviceId = "saas-server" ,url= "10.150.26.183")
public interface ApprovalClient {
    @PostMapping("/manager/saas/v1/approval/save")
    Message submitApproval(ApprovalRo ro,@RequestHeader(name = "token",required = true) String token);

    @PostMapping("/manager/saas/v1/approval/updateApprovers")
    Message updateApprovers( ApprovalRo ro, @RequestHeader(name = "token",required = true) String token);

    @PostMapping("/api/saas/v1/approval/getByIds")
    Message getApproverUser(List<Integer> approvalIds, @RequestHeader(name = "token",required = true) String token);

}
